home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / archives / com / internet / sting / sting.lzh / STING / dialer / dial.scr < prev    next >
Text File  |  1997-10-15  |  11KB  |  323 lines

  1. #
  2. # VAR = VALUE           : standard format
  3. #
  4. #   Lines beginning with '#' or any nonprintable character are ignored.
  5. #   They don't even consume any memory.
  6. #
  7. #   The variable names are not case sensitive.
  8. #   Values may be case sensitive depending on usage.  Watch out for 
  9. #   unintentional blanks at the end of a string value.
  10. #
  11. #   Some variables may be specified twice or more often (like the
  12. #   PHONE_NUMBER).
  13. #
  14. #
  15. #
  16. # Configuration part of script file
  17. #
  18. #
  19. #   This variable determines if the Dialer terminates after the last
  20. #   window has been closed. If set to zero, the Dialer terminates 
  21. #   automagically after the user closed all windows. Set to one, the
  22. #   variable causes the Dialer to stay in an event loop, waiting for
  23. #   AC_OPEN or dialing request messages. AC_OPEN causes the Dialer to
  24. #   reopen the main window.
  25. #
  26. RESIDENT = TRUE
  27. #
  28. #
  29. #   Line protocol for IP packets to be used :
  30. #        0 = SLIP
  31. #        1 = PPP
  32. #   For CSLIP, set this to 0, and activate Van Jacobson Header 
  33. #   Compression.
  34. #
  35. PROTOCOL = 0
  36. #
  37. #
  38. #   If you use PPP, your ISP might require password authentication
  39. #   via PAP (Password Authentication Protocol).  If so, enter here
  40. #   the ID ("account", "user name") and the password.
  41. #
  42. PAP_ID       = user
  43. PAP_PASSWORD = secret
  44. #
  45. #
  46. #   Should Van Jacobson Header Compression be used ?
  47. #        FALSE = No
  48. #        TRUE  = Yes
  49. #   VJHC together with PROTOCOL = 0 defines CSLIP.
  50. #
  51. VJHC = FALSE
  52. #
  53. #
  54. #   Socket to be used when Serial 2 / LAN is selected.
  55. #        FALSE = Serial (RS 232 compatible) socket
  56. #        TRUE  = LAN (RS 422 compatible) socket
  57. #
  58. LAN_PORT = FALSE
  59. #
  60. #
  61. #   Your username and hostname.
  62. #
  63. #   HOSTNAME is the hostname of your computer for this session.  If
  64. #   your address is dynamically allocated, HOSTNAME will be wrong.
  65. #   For now, just set it to your providers hostname (or whatever). 
  66. #   Try to make it reasonably accurate if possible.
  67. #
  68. #   USERNAME doesn't make much sense either until I have an identd
  69. #   working.  So it doesn't really matter what it is.  When I do have
  70. #   an identd, this will be your `valid' username for incoming queries.
  71. #
  72. #   FULLNAME is pretty obvious, right ?
  73. #
  74. USERNAME = perot
  75. HOSTNAME = modserv.stud.uni-hannover.de
  76. FULLNAME = Peter Rottengatter
  77. #
  78. #
  79. #   State here which IP address you're gonna use. If you got a permanent
  80. #   address from your ISP, put it in here. If you get a new address each
  81. #   time you log in, then use 0.0.0.0 here (this is irrelevant for SLIP,
  82. #   but essential for PPP !)
  83. #
  84. CLIENT_IP = 0.0.0.0
  85. #
  86. #
  87. #   Your ISP probably imposes a limit to the size of IP packets
  88. #   (Maximum Transfer Unit).  Many ISPs use the standard Ethernet 
  89. #   MTU of 1500 bytes.  576 is safe in any case, however.
  90. #
  91. MTU = 576
  92. #
  93. #
  94. #   If you want to use IP masquerading to hook your LAN to the Internet
  95. #   while your ISP provides only one IP address, set this variable to
  96. #   TRUE.  Better don't touch it if you never heard of masquerading before.
  97. #
  98. MASQUERADE = FALSE;
  99. #
  100. #
  101. #   The NAMESERVER (ie: DNS or Domain Name Server) *must* be set,
  102. #   preferably to a nameserver that your provider recommends.  Note :
  103. #   The address must be a dotted quad, that is, four decimal numbers
  104. #   separated by dots.  The mnemonic name will not work, as again a 
  105. #   name server would be needed to resolve it.  Put IP addresses of
  106. #   up to five name servers here, preparing for the case your favourite
  107. #   one is down.
  108. #
  109. NAMESERVER = 130.75.1.32
  110. NAMESERVER = 130.75.1.40
  111. #
  112. #
  113. #   Port of your computer to be used for the modem connection.
  114. #   Look in the 'Miscellaneous' part of the CONFIG form for
  115. #   available choices.  Spelling must be the same here.  Unvalid
  116. #   names revert to Modem 1.
  117. #
  118. SERIALPORT = Modem 1
  119. #
  120. #
  121. #   Phone Number(s).  PHONE_NUMBER = number.  Some providers
  122. #   have more than one number you can dial.  You can specify
  123. #   up to eight phone numbers here.  Specify none if you use a
  124. #   leased line.
  125. #
  126. PHONE_NUMBER = 0511-7629993
  127. #
  128. #
  129. #   File describing the telephone fee structure of your telephone
  130. #   company.  The file must be in the same directory as this script
  131. #   file.
  132. #
  133. FEE_FILE = LOCAL.FEE
  134. #
  135. #
  136. #   These parameters describe what the ISP charges for Internet
  137. #   access. Some ISP charge for time only, some for transferred
  138. #   data, some for a combination of both. Some even discriminate
  139. #   between sent and received data.
  140. #
  141. #   Each entry consists of the unit (of time, or data), and the
  142. #   corresponding cost. The unit may be followed by an 's', 'm' or
  143. #   'h' for seconds, minutes and hours in case of time, or 'K' or
  144. #   'M' for KBytes (1024 bytes) and MBytes (1048576 bytes) in case
  145. #   of transferred data. The cost unit (Dollar '$', Deutsche Mark
  146. #   'DM') is specified in FEE_FILE.
  147. #
  148. ISP_TIME  = 72s, 0.07
  149. ISP_SENT  = 12K, 0.03
  150. ISP_RECVD = 84K, 0.09
  151. #
  152. #
  153. #   Set this to TRUE if you have only one machine to be connected 
  154. #   to the Internet. You need every IP packet to be sent to the 
  155. #   ISP's host, thus a default route should be created. Setting this 
  156. #   to TRUE causes the Dialer to do this.
  157. #
  158. DEF_ROUTE = TRUE
  159. #
  160. #
  161. #   If this is set to TRUE, the file specified by the LOGIN_BATCH
  162. #   variable (set either in DEFAULT.CFG or the network environment)
  163. #   is treated as a batch file and executed after login. The file
  164. #   contains lines that specify a binary (complete path) and a
  165. #   set of commandline parameters, all separated by spaces.
  166. #
  167. EXEC_BATCH = FALSE
  168. #
  169. #
  170. #   Setting this variable to TRUE causes the Dialer to write debug
  171. #   info about the connection initialization to disk.
  172. #
  173. DEBUGGING = FALSE
  174. #
  175. #
  176. #
  177. # Connection part of script file
  178. #
  179. #
  180. #   This part is initialising the modem, dialing a remote system
  181. #   and establishing a connection to a remote modem.
  182. #
  183. #   INIT sets the string you can use to initialise the modem.
  184. #
  185. INIT = ATZ
  186. #
  187. #
  188. #   PREFIX sets the dial prefix (ie: ATD, ATDT, ATDP, whatever else
  189. #   is needed to get a dial tone)
  190. #
  191. PREFIX = ATDT
  192. #
  193. #
  194. #   Then you should define how to hangup your modem, i.e. which 
  195. #   command is to be used to shut down a connection.  The dialer
  196. #   will use the DTR signal to hangup the modem if HANGUP = DTR is
  197. #   set.  Otherwise set HANGUP to the appropriate hangup string 
  198. #   for your modem.  A comma forces the dialer to wait a second.
  199. #   Normally a pause, three '+' characters and another pause cause
  200. #   a modem to revert to command mode, then 'ATH' can be issued.
  201. #
  202. HANGUP = ,+++,ATH
  203. #
  204. #
  205. #   The dialing parameters are CONNECT_WAIT and REDIAL_DELAY.  These
  206. #   are times in seconds.  CONNECT_WAIT is the amount of time to wait
  207. #   for a connection after dialing a number.  REDIAL_DELAY is the amount
  208. #   of time to wait in between dial attempts.
  209. #
  210. CONNECT_WAIT = 60
  211. REDIAL_DELAY = 20
  212. #
  213. #
  214. #   Connection success can be determined either by detecting the
  215. #   modems Carrier Detect signal (SUCCESS = CDWAIT), or waiting 
  216. #   for a CONNECT response (SUCCESS = CONNECT) from the modem.
  217. #   Failure can be determined by a timeout or a modem response
  218. #   such as NO CARRIER or BUSY.  NO DIALTONE generally means a
  219. #   serious problem like the modem not being connected to the
  220. #   telephone line, so that an immediate redial is not a sensible
  221. #   reaction.  The dialer will be halted instead.  Up to three 
  222. #   test words of each kind can be set.
  223. #
  224. #   The SUCCESS = DIRECT has a special meaning.  If specified, the
  225. #   dialer will skip the dialing part, moving on to the script
  226. #   execution straight away.  This is handy for doing connects on
  227. #   serial lines connected directly to a host (without modem), or
  228. #   on leased lines.
  229. #
  230. SUCCESS = CONNECT
  231. SUCCESS = CDWAIT
  232. FAILURE = BUSY
  233. FAILURE = NO CARRIER
  234. ABORT   = NO DIALTONE
  235. #
  236. #
  237. #
  238. # Login part of script file
  239. #
  240. #
  241. #   This part is to log into the remote computer.  This will probably
  242. #   involve entering a username and password, selecting SLIP mode,
  243. #   and reading the Internet Address that your system will have for
  244. #   the duration of the session.
  245. #
  246. #   This variable determines how many seconds the script interpreter 
  247. #   will wait for the FIND strings to be received. If the FIND times 
  248. #   out, script execution will be aborted and a hangup and redial will 
  249. #   be initiated.
  250. #
  251. FIND_TIMEOUT = 60
  252. #
  253. #
  254. #   The beginning of the script part is denoted by the DIAL_SCRIPT
  255. #   keyword.
  256. #
  257. DIAL_SCRIPT
  258. #
  259. #
  260. #   The STinG dialer uses the standard `conversational' method for
  261. #   login to the provider.  This involves searching for certain
  262. #   words and sending an appropriate response.  The special
  263. #   response $GET_IP is used to read the IP address that your
  264. #   provider has assigned you for this session.  If your provider
  265. #   has allocated you a permanent IP Address, then you should set
  266. #   it using the CLIENT_IP keyword (see above) and NOT use $GET_IP.
  267. #
  268. #   Each step of the `conversation' is specified as a FIND line,
  269. #   a REPT line, a WAIT line, and a RESP line.  There can be up to
  270. #   32 steps.  Each FIND *must* have a matching REPT, RESP and WAIT,
  271. #   even if they have no value.  This is because values are put into
  272. #   arrays in the order they appear.
  273. #
  274. #   WAIT is the time in milliseconds to pause before each REPT/FIND/RESP
  275. #   For accuracy, the time should be a multiple of 5 (i.e.: a WAIT = 4
  276. #   would result in a pause of 0.  WAIT = 12 would be 10).
  277. #
  278. #   REPT specifies a string that is sent repeatedly while searching
  279. #   for the FIND string.  Particularly older systems might require
  280. #   initial CRs sent, in order to trigger the login.
  281. #
  282. #   By default each RESP line is sent with a carriage return
  283. #   character at the end.  If you need to use a line feed character
  284. #   instead then put a | at the end of the line, or a \ in order to 
  285. #   use an ESC character.  This only works if the | or \ is the last 
  286. #   character of the line.  A / character at the end of a line means 
  287. #   carriage return, but this is the default, so you don't need it.
  288. #
  289. #   If you want to send just a Carriage Return, then use RESP = /
  290. #   If you want to send just a Linefeed, then use RESP = |
  291. #   If you want to send just a ESC, then use RESP = \
  292. #
  293. #   Note that if neither REPT, FIND or RESP have a value, they are
  294. #   ignored, but in this case the WAIT (if any) will still pause.
  295. #   If FIND has no value but RESP does, the value of RESP will be
  296. #   sent immediately after the WAIT time.  No REPT string will be
  297. #   sent in that case.  If FIND has a value but RESP does not, then
  298. #   after the FIND the REPT repetition will cease and the dialer will
  299. #   move straight on to the next WAIT / REPT / FIND / RESP.
  300. #
  301. #   Here is an example :
  302. #
  303. WAIT = 500
  304. REPT = /
  305. FIND = Username:
  306. RESP = YourUsernameHere
  307. #
  308. WAIT = 500
  309. REPT =
  310. FIND = Password:
  311. RESP = YourPasswordHere
  312. #
  313. WAIT = 500
  314. REPT =
  315. FIND = prompt
  316. RESP = slip
  317. #
  318. WAIT = 500
  319. REPT =
  320. FIND = Your IP address is
  321. RESP = $GET_IP
  322. #
  323.